<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Product;


class ProductController extends Controller
{
    //
    public function index()
    {
        return view('product.index');
    }

    public function show(Product $product)
    {
        $products = $product->with('skus')->find($product->id);
        $tuijProdu = $product->get();

        return view('product.show', compact('products', 'tuijProdu'));
    }
}
